package com.mikey.springcloud.service;

import com.mikey.springcloud.pojo.Category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author :Mikey
 * @description :
 * @create :2022-09-01 11:44:00
 */
@FeignClient("SPRINGCLOUD-PROVIDER-CATEGORY")
@Component
public interface CategoryClientService {
    @GetMapping("/category/list")
    public List<Category> list();
    @GetMapping("/category/select/{id}")
    public Category findOne(@PathVariable("id") Integer id);
}
